POV-Ray : Newsgroups : povray.newusers : Gradients : Re: Gradients Server Time
5 Sep 2024 02:19:22 EDT (-0400)
  Re: Gradients  
From: Warp
Date: 21 Dec 2001 14:07:00
Message: <3c238854@news.povray.org>
Parasonic <par### [at] parasonicpar> wrote:
: I try to find answers by my own, especially by trial and error here, but I
: haven't been able to figure this one either. I'm making a sky_sphere, and I
: want a single gradient, blue to black, with a median at 0*y. The gradient
: now is basically inverted in the lower 'hemisphere' I just need a gradient
: of mostly blue in the upper 'hemisphere' to mostly black in the lower one.

sky_sphere
{ pigment
  { gradient y color_map
    { [0 rgb 0][1 rgb z]
    }
    scale 2 translate -y
  }
}

-- 
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.